/**
 * @Author: 小狐
 * @Date: 2021/11/30 13:53
 * @Describe 主动去学习
 *
 */
package handle

import (
	"context"
	"event/consumer/consumer"
	"event/consumer/resp"
	"github.com/gin-gonic/gin"
)

func GetEvent(c *gin.Context) {


	if response, err := consumer.EventClient.SendEvent(context.Background(), nil); err !=nil {
		resp.Error(c,"服务错误")
	}else {
		resp.Success(c,response)
	}

}
